SDL_CFLAGS = `sdl-config --cflags`
SDL_LIBS = `sdl-config --libs`

NET_CFLAGS = -I/usr/include/SDL
#NET_LIBS = -L/usr/lib -L/usr/lib/libSDL_net.a
NET_LIBS = -lSDL_net

MIX_CFLAGS = -I$(top_srcdir)/usr/include
MIX_LIBS = -L$(top_srcdir)/usr/lib $(top_srcdir)/usr/lib/libSDL_mixer.a

# The order of linking is important (says Erwin Coumans)
BT_CFLAGS = -I/lusr/include/bullet
BT_LIBS = -L/lusr/lib \
	-Wl, -Bstatic \
	-lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath

bin_PROGRAMS = OgreApp
OgreApp_CPPFLAGS = -I$(top_srcdir)
OgreApp_SOURCES = main.cpp \
	States.h \
	Engine.h Engine.cpp InputSet.h \
	Blank.h Blank.cpp \
	BulletState.h BulletState.cpp \
	Assignment2.h Assignment2.cpp \
	MotionState.h \
	RiotShield.h RiotShield.cpp \
	PlayerRiotShield.h PlayerRiotShield.cpp \
	PlayingFieldConstants.h \
	PlayingField.h PlayingField.cpp \
	ScoreCard.h ScoreCard.cpp \
	FlashBang.h FlashBang.cpp \
	NetworkHandler.h NetworkHandler.cpp \
	NetworkTarget.h \
	NetworkServer.h NetworkServer.cpp \
	NetworkClient.h NetworkClient.cpp \
	ParrotNTarget.h ParrotNTarget.cpp \
	ClientRiotShield.h ClientRiotShield.cpp \
	ServerRiotShield.h ServerRiotShield.cpp \
	ClientControlResponder.h ClientControlResponder.cpp \
	NetworkUtils.h \
	ServerScoreCard.h ServerScoreCard.cpp \
	ClientScoreCard.h ClientScoreCard.cpp \
	ServerFlashBang.h ServerFlashBang.cpp \
	ClientFlashBang.h ClientFlashBang.cpp
OgreApp_CXXFLAGS = $(OGRE_CFLAGS) $(OIS_CFLAGS) \
	$(SDL_CFLAGS) $(MIX_CFLAGS) $(NET_CFLAGS) $(BT_CFLAGS)
OgreApp_LDADD = $(OGRE_LIBS) $(OIS_LIBS)
OgreApp_LDFLAGS = $(SDL_LIBS) $(MIX_LIBS) $(NET_LIBS) $(BT_LIBS)
